package com.ruoyi.room.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.room.service.ITbBroadbandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 宽带表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-28
 */
/*
* TODO
*   1.宽带表添加宽带时，需要判断宽带名是否重复
* */
@RestController
@RequestMapping("/broadband/")
public class TbBroadbandController {

    @Autowired
    ITbBroadbandService broadbandService;

    @GetMapping("getBroadband")
    public AjaxResult getBroadband() {
        return AjaxResult.success(broadbandService.list());
    }

}
